//
//  HomeTabCell.m
//  SleepingElf
//
//  Created by karong on 2023/10/10.
//

#import "HomeTabCell.h"
#import "HomeModel.h"

@interface HomeTabCell ()
@property (weak, nonatomic) IBOutlet UIImageView *bgImageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *subTitle;
@property (weak, nonatomic) IBOutlet UIImageView *imageView;

@end

@implementation HomeTabCell

- (void)setDataWithObject:(HomeTab *)object {
    self.bgImageView.image = SEIMG(SESF(@"bg_tab_%ld", (long)object.type));
    self.titleLabel.text = object.title;
    self.subTitle.text = object.describe;
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:object.icon]];
}
@end
